<%@ page contentType="text/html; charset=UTF-8"%>
<!--<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>-->
<!DOCTYPE html>
<html>
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文件管理器</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico"> <link href="${pageContext.request.contextPath}/resources/plugins/h+/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/resources/plugins/h+/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/resources/plugins/h+/css/animate.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/resources/plugins/h+/css/style.min862f.css?v=4.1.0" rel="stylesheet">
	
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/plugins/h+/css/plugins/webuploader/webuploader.css">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content">
        <div class="row">
            <div class="col-sm-3">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <div class="file-manager">
                            <h5>显示：</h5>
                            <a href="${pageContext.request.contextPath}/jsp/file/file_manager.jsp" class="file-control active">所有</a>
                            <a href="${pageContext.request.contextPath}/jsp/file/file_file.jsp" class="file-control">文档</a>
                            <a href="${pageContext.request.contextPath}/jsp/file/file_vedio.jsp" class="file-control">视频</a>
                            <a href="${pageContext.request.contextPath}/jsp/file/file_image.jsp" class="file-control">图片</a>
                            <div class="hr-line-dashed"></div>
                            <button id="btn_file_upload" class="btn btn-primary btn-block">上传文件</button>
                            <div class="hr-line-dashed"></div>
                            <h5>文件夹</h5>
                            <ul class="folder-list" style="padding: 0">
                               	<c:forEach items="${requestScope.fileTypeList}" var="obj" varStatus="id">
                               		<li><a href="${pageContext.request.contextPath}/${obj.filePath}"><i class="${obj.fileIcon }"></i> ${obj.typeName}</a></li>
                               	</c:forEach>
                                
                            </ul>
                            <h5 class="tag-title">标签</h5>
                            <ul class="tag-list" style="padding: 0">
                            	<c:forEach items="${requestScope.fileLabelList}" var="obj" varStatus="id">
                            		<li><a href="file_manager.html">${obj.labelName }</a></li>
                            	</c:forEach>
                            </ul>
                            <div class="clearfix"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-9 animated fadeInRight">
                <div class="row">
                    <div class="col-sm-12">
                        <c:forEach items="${requestScope.fileList}" var="obj" varStatus="id">
                        	<div class="file-box">
                            <div class="file">
                                <a href="file_manager.html#">
                                    <span class="corner"></span>

                                    <div class="image">
                                        <img alt="image" class="img-responsive" src="${obj.filePath }">
                                    </div>
                                    <div class="file-name">
                                        ${obj.fileName}
                                        <br/>
                                        <small>添加时间：${obj.createTime }</small>
                                    </div>
                                </a>
                            	</div>
                        	</div>
                        </c:forEach>
                        
                        

                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="${pageContext.request.contextPath}/resources/plugins/h+/js/jquery.min.js?v=2.1.4"></script>
    <script src="${pageContext.request.contextPath}/resources/plugins/h+/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="${pageContext.request.contextPath}/resources/plugins/h+/js/content.min.js?v=1.0.0"></script>
    <script src="${pageContext.request.contextPath}/resources/plugins/h+/js/plugins/webuploader/webuploader.min.js"></script>
    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>

</body>
<script type="text/javascript">
    $(document).ready(function(){
	    $("#btn_file_upload").click(function (){
		//自定页
		parent.layer.open({
		    type: 2,
            shift:4,
            moveType:1,
            maxmin: true,
            //shadeClose: true, //开启遮罩关闭
		    area: ['600px', '560px'],
		    content: '${pageContext.request.contextPath}/jsp/common/file_uploader.jsp',
		    success: function(layero, index){
			   // alert(index);
			},
			cancel: function(index){
				return true;
			} 
        });
	    })
	    

    });
</script>

</html>
